<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 判断一个整数，属于哪个范围
    <script>
        var a = parseInt(prompt("输入一个整数"));
        if (a>0){
            document.write("大于0");
        }else if(a==0){
            document.write("等于0");
        }else if(a<0){
            document.write("小于0");
        }
    </script> -->










    <!-- 测年份啊啊啊啊啊啊 -->
    <!-- <script>
        var a = parseInt(prompt("输入一个整数"));
        a %= 2;
        if (a==0){
            alert("输入的是偶数");
        }else {
            alert("输入的是奇数");
        }  -->
        <input type="text" id="num">
        <button id="btn">查询</button>
        <script>
            var getnum = document.getElementById("num");
            var getbtn = document.getElementById("btn");
            getbtn.onclick = function(){
                var num1 = getnum.value;
                if (num1 %2 == 0){
                    alert("这是个偶数");
                }else if(num1 %2 ==1){
                    alert("这是个奇数");
                }else{
                    alert("你输的是个寄吧");
                }
            }
        </script>















     <!-- 测年份啊啊啊啊啊啊  -->
    <!-- </script> --> 
    <!-- <input type="text" id="num"><button id="but">点我点我</button>
    <script>
        var getnum = document.getElementById("num")
        var getbtn = document.getElementById("but")
        getbtn.onclick = function () {
            var num = parseInt(getnum.value);
            if (num %4 ==0 && num %100 !=0 || num %400 ==0 ){
                alert("闰年");
            }else{
                alert("平年");
            }
        }
    </script> -->






    
    <!-- 测体重啊啊啊啊啊！！！！！！
    <input type="text" id="long">
    <input type="text" id="thick">
    <button id="btn">你倒是给我点啊</button>
    <script>
        var getlong=document.getElementById("long");
        var getthick=document.getElementById("thick");
        var getbtn=document.getElementById("btn");
        getbtn.onclick=function(){
            var long=parseInt(getlong.value);
            var thick=parseInt(getthick.value);
            if (((long-108)*2)<(thick+10)&&((long-108)*2)>(thick-10)){
                alert("可以可以加油嗷弟弟");
            }else{
                if (((long-108)*2)>(thick-10)){
                    alert("弟弟多吃点");
                }else{
                    alert("臭猪");
                }
            }
        }
    </script> -->










<!-- 成绩！！！！！
    <input type="text" id="num">
    <button id="btn">接受审判吧</button>
    <script>
        var getnum=document.getElementById("num");
        var getbtn=document.getElementById("btn");
        getbtn.onclick=function(){
            var num=parseInt(getnum.value);
            if (num<60){
                alert("fw东西");
            }else if(num>=60&&num<70){
                alert("加油嗷");
            }else if(num>=70&&num<80){
                alert("哎呦不错欧");
        }else if(num>=80&&num<=100){
                alert("卧槽流批");
        }else{
            alert("你是伞兵？");
        }
    </script> -->


















    <!-- 文本框！！！！
     <input type="text" id="num1">
    <select name="" id="choose">
        <option value="-">-</option>
        <option value="/">/</option>
        <option value="+">+</option>
        <option value="*">*</option>
    </select>
    <input type="text" id="num2">
    <button id="btn">点点点</button>
    <input type="text" id="result">
    <script>
        var getnum1=document.getElementById("num1");
        var getnum2=document.getElementById("num2");
        var getchoose=document.getElementById("choose");
        var getbtn=document.getElementById("btn");
        var getres=document.getElementById("result");
        getbtn.onclick =function(){
            var num1 = parseInt(getnum1.value);
            var num2 = parseInt(getnum2.value);
            var ok = getchoose.value;
            if (ok=="+"){
                var res=num1+num2;
            }else if(ok=="*"){
                var res=num1*num2;
            }else if(ok=="/"){
                var res=num1/num2;
            }else if(ok=="-"){
                var res=num1-num2;
            }
             getres.value= res;
        } -->
            
    </script>
</body>

</html>